# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=android-udev-rules
pkgver=550.35c52f9
pkgrel=1
epoch=1
pkgdesc='Android udev rules.'
groups=('blackarch' 'blackarch-mobile')
arch=('any')
url='https://github.com/bbqlinux/android-udev-rules'
license=('GPL')
makedepends=('git')
source=("git+https://github.com/M0Rf30/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 51-android.rules "$pkgdir/etc/udev/rules.d/51-android.rules"
}

